home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / xc2102i.lzh / XC2102.XDF / INCLUDE / STDDEF.H < prev    next >
Text File  |  1990-05-05  |  1KB  |  76 lines

  1. /*
  2.  * stddef.h X68k XC Compiler v2.00 Copyright 1990 SHARP/Hudson
  3.  */
  4. #ifndef    __STDDEF_H
  5. #define    __STDDEF_H
  6.  
  7. extern    volatile int    errno;
  8.  
  9. #ifndef    __DIV_T
  10. #define    __DIV_T
  11. typedef    struct    {
  12.     int    quot;
  13.     int    rem;
  14. }    div_t;
  15. typedef    struct    {
  16.     long    quot;
  17.     long    rem;
  18. }    ldiv_t;
  19. #endif
  20.  
  21. #ifndef    CLK_TCK
  22. #define    CLK_TCK    100.0
  23. #endif
  24.  
  25. #ifndef    CLOCKS_PAR_SEC
  26. #define    CLOCKS_PAR_SEC    100.0
  27. #endif
  28.  
  29. #define    offsetof(TYPE,MEMBER)    ((size_t)&((TYPE *)0)->MEMBER)
  30.  
  31. #ifndef    SEEK_SET
  32. #define    SEEK_SET    0
  33. #endif
  34. #ifndef    SEEK_CUR
  35. #define    SEEK_CUR    1
  36. #endif
  37. #ifndef    SEEK_END
  38. #define    SEEK_END    2
  39. #endif
  40.  
  41. #ifndef    NULL
  42. #define    NULL    0
  43. #endif
  44.  
  45. #ifndef    EOF
  46. #define    EOF    (-1)
  47. #endif
  48.  
  49. #ifndef    EOS
  50. #define    EOS    '\0'
  51. #endif
  52.  
  53. typedef    long    ptrdiff_t;
  54.  
  55. #ifndef    __SIZE_T
  56. #define    __SIZE_T
  57. typedef    unsigned    size_t;
  58. #endif
  59.  
  60. #ifndef    __TIME_T
  61. #define    __TIME_T
  62. typedef    long    time_t;
  63. #endif
  64.  
  65. #ifndef    __CLOCK_T
  66. #define    __CLOCK_T
  67. typedef    long    clock_t;
  68. #endif
  69.  
  70. #ifndef    __FPOS_T
  71. #define    __FPOS_T
  72. typedef    long    fpos_t;
  73. #endif
  74.  
  75. #endif
  76.